import {createRouter, createWebHistory} from 'vue-router'
import Home from '../views/Home.vue'
import About from '../views/About.vue'
import Events from '../views/Events.vue'
import SignUp from '../views/SignUp.vue'
import Login from '../views/Login.vue'
import MemberCenter from "../views/MemberCenter.vue";
import Projects from "../views/Projects.vue"

const routes = [
    {
        path: '/',
        name: 'Home',
        component: Home
    },
    {
        path: '/about',
        name: 'About',
        component: About
    },
    {
        path: '/events',
        name: 'Events',
        component: Events
    },
    {
        path: '/signup',
        name: 'SignUp',
        component: SignUp
    },
    {
        path: '/login',
        name: 'Login',
        component: Login
    },
    {
        path: '/center',
        name: 'MemberCenter',
        component: MemberCenter
    },
    {
        path: '/projects',
        name: 'Projects',
        component: Projects
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router
